package com.elitesland.demo.config;

import com.elitesland.core.config.argument.resolver.ImportExcelMethodArgumentResolver;
import com.elitesland.core.util.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * .
 *
 * @author Kaiser（wang shao）
 * @date 2021-02-19
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
//        resolvers.add(new CurrentScrmMethodArgumentResulver(redisUtils));

        resolvers.add(new ImportExcelMethodArgumentResolver());
    }
}
